import { request } from "@/utils/request";

export function SetNote(msg) {
    // 保存文本
    return request({
        url: '/note/setJSON',
        method: 'POST',
        data: msg,
        headers: {
            'Authorization': window.localStorage.getItem('token')
        }
    })
}
export function GetNote() {
    // 得到文本
    return request({
        url: '/note/getJSONByUuid',
        method: 'POST',
        headers: {
            'Authorization': window.localStorage.getItem('token')
        }
    })
}
export function setNoteImgAndNoteTitleByUuid(pageNum, pageSize) {
    // 根据用户得到用户的笔记图片和笔记标题
    return  request({
        url: '/noteCard/setNoteImgAndNoteTitleByUuid',
        method: 'POST',
        params: {pageNum: pageNum, pageSize: pageSize},
        headers: {
            'Authorization': window.localStorage.getItem('token')
        }
    })
}